package cn.com.basespringboot.vo;

import cn.com.basespringboot.bean.User;
import lombok.Data;

@Data
public class UserVo extends User {

    public static  UserVo returnUser(User user) {
        UserVo userVo = new UserVo();
        userVo.setAge(user.getAge());
        userVo.setBirthdayTime(user.getBirthdayTime());
        userVo.setPassword(user.getPassword());
        userVo.setId(user.getId());
        userVo.setUsername(user.getUsername());
        userVo.setSex(user.getSex());
        userVo.setSalt(user.getSalt());
        return userVo;
    }
}
